/*
 * @Authoryour name
 * @Date2020-12-02 22:06:55
 * @LastEditTime2020-12-02 22:06:55
 * @LastEditorsyour name
 * @DescriptionIn User Settings Edit
 * @FilePath\STM32H750_FreeRTOS\Config\include\common_types.h
 */ 

#ifndef COMMON_TYPES_H_
#define COMMON_TYPES_H_

#include <stdint.h>
#include <stdio.h>

#ifndef TRUE
    #define TRUE 1
#endif
#ifndef FALSE
    #define FALSE 0
#endif

#define RET_OK     0
#define RET_NOT_OK 1

typedef unsigned char boolean;
// typedef unsigned char uint8_t;
// typedef unsigned short uint16_t;
typedef signed short sint16_t;
// typedef unsigned long uint32_t;
typedef signed long sint32_t;


/* Assert Define */
#define ExprAssertCalled(char, int) printf("Error:%s,%d\r\n", char, int)
#define ExprAssert(x) if((x) == 0))  ExprAssertCalled(__FILE__,__LINE__)


#endif
